Skip to content

build: force BouncyCastle 1.86 on the Gradle plugin classpath - #343

Merged
cbetta merged 1 commit into
mainfrom
chore/bouncycastle-plugin-classpath
Nov 4, 2026
Merged

cbetta merged 1 commit into
mainfrom
chore/bouncycastle-plugin-classpath

Conversation

@cbetta

@cbetta cbetta commented Nov 4, 2026

Copy link
Copy Markdown
Member
Reviewer check This PR
Auth / permissions No
Data access widened No
New secret, env var or key No
CI, deploy or infra Yes: settings-extra.gradle changes the publish job's build classpath
Dependencies added or bumped Yes: BouncyCastle 1.77 → 1.86 on the Gradle plugin classpath
Copilot Pending
Security review Pending

Forces BouncyCastle 1.86 for the build's plugins. Speakeasy's generated sonatype-central-upload 1.0.3 pulls in 1.77, which GitHub flags (alerts #19–#30, dismissed as build-time only).

gradle.rootProject {
    buildscript.configurations.classpath.resolutionStrategy.eachDependency { d ->
        if (d.requested.group == 'org.bouncycastle') { d.useVersion '1.86' }
    }
}

Speakeasy suggested this (#gr4vy-speakeasy, ticket 12970): settings.gradle applies settings-extra.gradle, and the generator never writes it. ./gradlew buildEnvironment now shows bcprov-jdk18on:1.77 -> 1.86 and bcpg-jdk18on:1.77 -> 1.86; sonatypeCentralUpload is unchanged. The published SDK already ships 1.86.

🤖 Generated with Claude Code

The generated Maven Central upload plugin pulls in BouncyCastle 1.77. Override
it in settings-extra.gradle, which Speakeasy never regenerates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cbetta
cbetta marked this pull request as ready for review November 4, 2026 13:07
Copilot AI lite review requested due to automatic review settings November 4, 2026 13:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified with the BouncyCastle dependency-resolution update.

No open issues 🎉

What changed in this PR

This pull request updates the Gradle plugin classpath to use BouncyCastle 1.86 instead of the outdated transitive 1.77 version from the Sonatype upload plugin.

Changes:

  • Adds a non-generated Gradle settings hook for dependency resolution.
  • Forces all org.bouncycastle buildscript dependencies to version 1.86.
  • Preserves the generated publishing configuration and existing SDK dependency declarations.
File Description
settings-extra.gradle Configures the root buildscript resolution strategy to use BouncyCastle 1.86 for Gradle plugin dependencies.

Review effort: Lite

@cbetta
cbetta merged commit bd4d765 into main Nov 4, 2026
11 checks passed
@cbetta
cbetta deleted the chore/bouncycastle-plugin-classpath branch November 4, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants